package shop;

public class Book extends Product{
	private String author;
	private String isbn;
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getIsbn() {
		return isbn;
	}
	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}
	
	public Book(String name, double price, int num, String author, String isbn) {
		super(name, price, num);
		this.author = author;
		this.isbn = isbn;
	}

	
	@Override
	public String toString() {
		return "name:" + name +"author:" + author + "ISBN:" + isbn + "price" + price
				+ "num" + num ;
	}
	
	
	
}